<#include "common/tags.ftl"/>
<!DOCTYPE html>
<html style="background-color:#f2f2f2;color:#666;">
<head>
    <#include "common/meta.ftl"/>
    <title>我的工作台</title>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">DianPu</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                ${userName!""}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
                <li class="layui-nav-item">
                    <a href="javascript:;">HLK</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${ctx}hlk/couriermng" target="mainIframe">人员</a></dd>
                        <dd><a href="${ctx}hlk/vanmng" target="mainIframe">车辆</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">用户中心</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${ctx}uc/user/usermng" target="mainIframe">用户管理</a></dd>
                        <dd><a href="${ctx}uc/role/rolemng" target="mainIframe">角色管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">应用中心</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">应用管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">配置中心</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">参数配置</a></dd>
                        <dd><a href="javascript:;">字典项</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="${ctx}generator/codemng" target="mainIframe">代码生成</a>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="bottom:0;">
        <!-- 内容主${ctx}体区域 -->
        <iframe src="${ctx}uc/user/usermng" name="mainIframe" id="mainIframe"
                style="position: absolute;border:0px;padding:0;margin:0;width:100%;height:100%;top:0;bottom:0;left:0;right:0;"
                scrolling="no">
        </iframe>
    </div>

</div>

<#include "common/script.ftl"/>
<script type="text/javascript">
    //一般直接写在一个js文件中
    layui.use(['jquery', 'element', 'layer'], function () {
        var $ = layui.jquery;
        var layer = layui.layer
                , element = layui.element;

        layer.msg('欢迎');

        var _height = $(window).height() - $('.layui-header').height();
        $('#mainIframe').height(_height);
    });
</script>
</body>
</html>
